<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<jsp:include page="Menu.jsp"></jsp:include>
<table border="1" style="width: 100%; height:100%">
	<tbody>
		<tr>
			<th colspan="2" height="30">Student Management System</th>
		</tr>
		<tr>
			<td valign="top">Welcome, ${sessionScope.use.fname } ${sessionScope.use.lname } <br />
				<c:if test="${empty requestScope.student }" var="flag">
				<em>Sorry no student found with the sid : ${param.key }</em>
				</c:if>
				<c:if test="${not flag }">
					<table border="1" style="width: 100%; height:100%">
						<tbody>
							<tr>
								<th>First name: </th>
								<td>${student.fname }</td>
							</tr>
							<tr>
								<th>Last name: </th>
								<td>${student.lname }</td>
							</tr>
							<tr>
								<th>DOB: </th>
								<td>${student.dob }</td>
							</tr>						
							<tr>
								<th>Email: </th>
								<td>${student.email }</td>
							</tr>
							<tr>
								<th>Mobile: </th>
								<td>${student.mobile }</td>
							</tr>
						</tbody>			
					</table>
				</c:if>
			</td>
		</tr>
		<tr>
			<th colspan="2" height="30">@ Copyrights Trần Thanh I Len</th>
		</tr>
	</tbody>
</table>